package com.huawang.mdesign.model.service.request;

import com.huawang.business.constants.ParamErrorConstants;
import io.swagger.v3.oas.annotations.media.Schema;
import com.huawang.business.dto.Node;
import com.huawang.business.dto.ProjectIdDTO;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.util.List;

@Data
public class EncryptModelDTO extends ProjectIdDTO{
    @NotBlank(message = ParamErrorConstants.NO_INSTANCE_ID)
    @Schema(title = "待封装模型id")
    private String encryptModelId;

    @NotBlank(message = ParamErrorConstants.NO_PUBLIC_KEY)
    @Schema(title = "公钥")
    private String publicKey;

    @Schema(title = "被隐藏模型id")
    private List<Node> hiddenNodes;

    @Schema(title = "可见模型id")
    private List<Node> visibleNodes;

}
